<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:m="http://www.ol4jsf.org"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:o="http://openfaces.org/">

	<h:form>
		<ui:include src="selectedZoneTlb.xhtml" />
	</h:form>
	
	<h:form>
		<div align="center" style="height:450px;" class="contentResponsibilities">
			<br />
			<strong>#{messages['dataentry.mutate_responsibilities.current']}</strong>
			<rich:separator lineType="solid"/>
			<br />
			<h:panelGroup id="responsibilitiesTable">
				<h:panelGroup rendered="#{not empty interactiveViewerHelper.rrrHelper.parcelResponsibilitiesList}">
					<rich:dataTable style="vertical-align:baseline;" value="#{interactiveViewerHelper.rrrHelper.parcelResponsibilitiesList}" var="responsibility" rowKeyVar="row" cellspacing="1" rows="13">
						<rich:column>
							<f:facet name="header">
								<h:outputText value="#{messages['dataentry.mutate_rrr.party']}"/>
							</f:facet>
							<h:outputText value="#{responsibility.owner}"/>
						</rich:column>
						<rich:column>
							<f:facet name="header">
								<h:outputText value="#{messages['dataentry.mutate_responsibilities.type']}"/>
							</f:facet>
							<h:outputText value="#{messages[responsibility.typeString]}" />
						</rich:column>
						<rich:column style="text-align:right;">
							<f:facet name="header">
								<h:outputText value="#{messages['dataentry.mutate_rrr.share']}"/>
							</f:facet>
							<h:outputText value="#{responsibility.shareString}"/>
						</rich:column>
	
						<f:facet name="footer">
							<rich:columnGroup>
								<rich:column>#{messages['dataentry.mutate_rrr.total']}</rich:column>
								<rich:column colspan="3" style="text-align:right;">
									<h:outputText value="#{interactiveViewerHelper.rrrHelper.responsibilitiesSumShares}"/>
								</rich:column>
							</rich:columnGroup>
						</f:facet>
					</rich:dataTable>
					<br />
					<br />
				</h:panelGroup>
				
				<h:panelGroup rendered="#{empty interactiveViewerHelper.rrrHelper.parcelResponsibilitiesList}">
					<h:outputText value="#{messages['dataentry.mutate_responsibilities.no']}" />
					<br />
				</h:panelGroup>
			</h:panelGroup>
		
			<br/>
			<br/>
		
		</div>
	</h:form>
	
</ui:composition>
